/* eslint-disable prettier/prettier */
const { generateService } = require("@umijs/openapi");

generateService({
  schemaPath: "http://121.40.116.76:8000/barter-user/v3/api-docs",
  serversPath: "./src/servers/user",
  apiPrefix: "'/barter-user'",
  requestImportStatement:
    "import { OpenApi as request } from '@/utils/request'",
});

generateService({
  schemaPath: "http://121.40.116.76:8000/barter-goods/v3/api-docs/供应链端",
  serversPath: "./src/servers/goods",
  apiPrefix: "'/barter-goods'",
  requestImportStatement:
    "import { OpenApi as request } from '@/utils/request'",
});

generateService({
  schemaPath: "https://fujiangdao.cn/api/barter-order/v3/api-docs/供应链端",
  serversPath: "./src/servers/order",
  apiPrefix: "'/barter-order'",
  requestImportStatement:
    "import { OpenApi as request } from '@/utils/request'",
});
